/**
 * author:Administrator
 * date:2016/4/12
 * desc:mp3
 */
'use strict';

var MyCrawler = require('./Crawler.js');
const cheerio = require('cheerio');

class CrawlerImg extends MyCrawler {
  constructor(opt) {
    super(opt);
  }
}

var imgCrawler = new CrawlerImg({
  url: 'http://desk.zol.com.cn/fengjing/1920x1080/',
  // url: 'http://www.51voa.com',
  maxThread: 2,
  label: {a: 'href', img: 'src'},
  saveFile: ['jpg', 'png', 'gif', 'jpeg'],
  depth: 0,
  minSize: 1024 * 50,
  exclude: [
    /^javascript/i,
    /^\/user/i,
    /^#/,
    /^\/oauth_api/,
    /^\/comment/,
    /^\/rising/,
    /\.7z/,
    /\.xml/,
    /\.exe/,
    /\.apk/,
    /\.ipa/,
    /\.rpm/,
    /\.tgz/,
    /\.rar/,
    /\.zip/,
  ]
});

imgCrawler.start();